home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Communications Toolbox / CTB Development Resources / Simple FT Tool / Simon Tool / Globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-12  |  2.8 KB  |  108 lines  |  [TEXT/MPS ]

  1. /************************************************************************************
  2.                                   P R O J E C T   I N F O
  3. *************************************************************************************
  4.   
  5.     Project Name:    Simon
  6.        File Name:    Globals.h
  7.   
  8.      Description:    Common typedefs and other definitions that are common to all
  9.                      C code.  This does not mean globals in the A5 sense.
  10.   
  11.                           Copyright © 1992 Apple Computer, Inc.
  12.                           All rights reserved.
  13.   
  14. *************************************************************************************
  15.                               A U T H O R   I D E N T I T Y
  16. *************************************************************************************
  17.   
  18.       Initials    Name
  19.       --------    -----------------------------------------------
  20.       CH            Craig Hotchkiss
  21.   
  22. *************************************************************************************
  23.                               R E V I S I O N   H I S T O R Y
  24. *************************************************************************************
  25.  
  26.     Change History (most recent first):
  27.  
  28.          <0>      5/8/92    CH        Creation date
  29.  
  30. ************************************************************************************/
  31.  
  32.  
  33.  
  34. #ifndef __GLOBALS__
  35.     #define __GLOBALS__
  36.  
  37.  
  38.  
  39. /************************************************************************************
  40.                                     Constants
  41. ************************************************************************************/
  42.  
  43.  
  44.  
  45. /************************************************************************************
  46.                                     Callback Types
  47. ************************************************************************************/
  48. typedef pascal void (*ClientListProcPtr)();
  49.  
  50.  
  51.  
  52. /************************************************************************************
  53.                                         Types
  54. ************************************************************************************/
  55. typedef struct        ConfigGlobals { 
  56.     short                    fToolVersion;
  57.     Boolean                    fPersistentPackets;
  58.     Boolean                    fOKToContinue;
  59. } ConfigGlobalRec;
  60. typedef    ConfigGlobalRec *ConfigGlobalPtr;
  61.  
  62.  
  63. typedef struct        SetupGlobals { 
  64.     short                    fLastItemHit;
  65. } SetupGlobalRec;
  66. typedef    SetupGlobalRec *SetupGlobalPtr;
  67.  
  68.  
  69. typedef struct        DefaultStruct { 
  70.     short                    fDefaultVersion;
  71.     short                    fDefaultLanguage;
  72.     Boolean                    fDefaultPersistentPackets;
  73.     Boolean                    fDefaultOKToContinue;
  74. } DefaultRec;
  75. typedef    DefaultRec *DefaultPtr;
  76.  
  77.  
  78.     /* global structure for the tool */
  79. typedef struct        ToolGlobals { 
  80.     SetupGlobalRec            fSetupRecord;
  81.     DefaultRec                fDefaultRecord;
  82.     ConfigGlobalPtr            fConfigPtr;
  83. } ToolGlobalRec;
  84. typedef    ToolGlobalRec *ToolGlobalPtr;
  85.  
  86.  
  87.  
  88.  
  89. #ifdef __cplusplus
  90.     extern "C" {
  91. #endif
  92.  
  93.  
  94.  
  95. /************************************************************************************
  96.                                 Global PROTOTYPEs here
  97. ************************************************************************************/
  98.  
  99.  
  100.  
  101. #ifdef __cplusplus
  102.     }
  103. #endif
  104.  
  105.  
  106.  
  107. #endif __GLOBALS__
  108.